﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>行旅旅行网</title>
<script type="text/javascript">
	function return()
	{
		alert("注册成功！"）;
		window.open(home.html);	
	}
	function validate()
	{
	  var uname=document.getElementById("username");
	  var upwd=document.getElementById("userpwd");
	  var ucwd=document.getElementById("usercwd");
	  var uid=document.getElementById("userid");
	  var up=document.getElementById("userp");
	  if(uname.value=="")
 	  {
 	    alert("用户名不能为空！");
            uname.focus();
 	    return false;
	  }
	  if(upwd.value=="")
	  {
 	    alert("密码不能为空！");
 	    upwd.focus();
 	    return false;
	  }
		if(ucwd.value=="")
	  {
 	    alert("确认密码不能为空！");
 	    ucwd.focus();
	    return false;
	  }
	  if(upwd.value!=ucwd.value)
	  {
	    alert("密码和确认密码不一致！");
	    ucwd.focus();
	    return false;
	  }
	  if(uid.value=="")
 	  {
 	    alert("身份证号不能为空！");
            uid.focus();
 	    return false;
	  }
	  if(       )
 	  {
 	    alert("手机号码不能为空！");
            up.focus();
 	    return false;
	  }
	}
	</script>
<style type="text/css">
body {
 background:url(im/4.jpg);
}
</style>
</head>
<body>
</br></br></br></br></br>
<div style="width: 650px; height: 437px; background: url(im/故宫.jpg); position: absolute; left: 155px; top: 56px;"  align="left " ><div style="position: absolute; left: 213px; top: 136px;"></div></div>
<div style="position: absolute; left: 807px; top: 163px;">
<form name="form1" onsubmit="return validate()"  action="首页.html">
<table width="280" height="150" align=right  >
    <tr>
    <td width="80" align="right" nowrap style="color:#000">用户名：<td width="163"><input type="text" id="username" />
  </tr>
  <tr>
    <td align="right" style="color:#000">密码：<td><input type="password" id="userpwd" />
  </tr>
  <tr>
    <td align="right" style="color:#000">确认密码：<td><input type="password" id="usercwd" />
  </tr>
  <tr>
    <td width="80" align="right" nowrap style="color:#000">身份证号：<td width="163"><input type="text" id="userid" />
  </tr>
  <tr>
    <td width="80" align="right" nowrap style="color:#000">手机号码：<td width="163"><input type="text" id="userp" />
  </tr>
  <tr>
    <td colspan="2" align="center"><input onClick="window.open(index.html)" type="submit" value="注册"/>
    <font size="-1"><a href="index.html" style="text-decoration:none"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;《返回登陆页 </a></font>
    </tr>
</table>
  
</form>
</div>
</body>
</html>
